package org.example.domain;

public class Ebook {  
    private Long id;  
    private String name;  
    private String category1Id;  
    private String category2Id;  
    private String description;  
    private String cover;  
    private Integer docCount;  
    private Integer viewCount;  
    private Integer voteCount;  

    // getter和setter方法  
    public Long getId() {  
        return id;  
    }  

    public void setId(Long id) {  
        this.id = id;  
    }  

    public String getName() {  
        return name;  
    }  

    public void setName(String name) {  
        this.name = name;  
    }  

    public String getCategory1Id() {  
        return category1Id;  
    }  

    public void setCategory1Id(String category1Id) {  
        this.category1Id = category1Id;  
    }  

    public String getCategory2Id() {  
        return category2Id;  
    }  

    public void setCategory2Id(String category2Id) {  
        this.category2Id = category2Id;  
    }  

    public String getDescription() {  
        return description;  
    }  

    public void setDescription(String description) {  
        this.description = description;  
    }  

    public String getCover() {  
        return cover;  
    }  

    public void setCover(String cover) {  
        this.cover = cover;  
    }  

    public Integer getDocCount() {  
        return docCount;  
    }  

    public void setDocCount(Integer docCount) {  
        this.docCount = docCount;  
    }  

    public Integer getViewCount() {  
        return viewCount;  
    }  

    public void setViewCount(Integer viewCount) {  
        this.viewCount = viewCount;  
    }  

    public Integer getVoteCount() {  
        return voteCount;  
    }  

    public void setVoteCount(Integer voteCount) {  
        this.voteCount = voteCount;  
    }  

    @Override  
    public String toString() {  
        return "Ebook{" +  
                "id=" + id +  
                ", name='" + name + '\'' +  
                ", category1Id='" + category1Id + '\'' +  
                ", category2Id='" + category2Id + '\'' +  
                ", description='" + description + '\'' +  
                ", cover='" + cover + '\'' +  
                ", docCount=" + docCount +  
                ", viewCount=" + viewCount +  
                ", voteCount=" + voteCount +  
                '}';  
    }  
}